package com.mg.service;

import com.github.pagehelper.PageInfo;
import com.mg.dto.PurchaseSaleDto;
import com.mg.dto.SimpleResult;
import com.mg.model.PurchaseSale;

import java.math.BigDecimal;
import java.util.Map;

/**
 * Created by mg1213 on 2018/3/18.
 */
public interface PurchaseSaleService {
    PageInfo<PurchaseSaleDto> selectPageInfo(PurchaseSaleDto dto, int start, int limit);

    SimpleResult insertPurchaseSale(PurchaseSale record);
    SimpleResult updatePurchaseSale(PurchaseSale record);

    SimpleResult deletePurchaseSale(String ids);

     PurchaseSaleDto getPurchaseSale(PurchaseSaleDto purchaseSaleDto);

    SimpleResult tradeContract(Integer id, Integer userId,BigDecimal num);

    Map<String,Object> getDetail(PurchaseSaleDto record, Integer id);
}
